<?php
class ConfigModel extends AdvModel
{
	// 自动填充规则
	var $_auto = array(
//		array("password","md5",1,"function"),
//		array("regtime","time",1,"function"),
//		array("image","",1,"string"),
//		array("score","0",1,"string"),
//		array("status","1",1,"string"),
		//array("city","",1,"string"),
		//array("sex","0",1,"string"),
		//array("login_time","0",1,"string"),
		//array("login_time","time",2,"function"),
		//array('status','0',self::MODEL_INSERT),
	);

	// 自动校验规则
	var $_validate = array(
		array('title','require','网站标题不能为空',0,'',3),
		array('content','require','网站简介不能为空',0,'',3),
		array('sitekey','require','网站关键字不能为空',0,'',3),
		//array('searchkey','require','搜索热门关键字不能为空',0,'',3),

	);

}
?>